/*
 * @Author: your name
 * @Date: 2021-11-29 16:34:01
 * @LastEditTime: 2021-11-29 17:52:54
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \x6-example\src\router\index.ts
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/graphConfig',
    name: '画布配置',
    component: () => import('../views/GraphConfig.vue')
  },
  {
    path: '/graphNodeAndEdge',
    name: '节点和边配置',
    component: () => import('../views/GraphNodeAndEdge.vue')
  },
  {
    path: '/graphConnect',
    name: '节点和边连接',
    component: () => import('../views/GraphConnect.vue')
  },
  {
    path: '/graphVueNode',
    name: 'Vue节点',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/GraphVueNode.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
